package cg.modelo;

public class Board {

	private Deck deck;
	private Graveyard graveyard;
	private OutOfPlay outOfPlay;
	private MonsterZone monsterZone;
	private MagicTrapZone magicTrapZone;
	
	public Board(Deck deck) {
		this.deck = deck;
		this.graveyard = new Graveyard();
		this.outOfPlay = new OutOfPlay();
		this.monsterZone = new MonsterZone();
		this.magicTrapZone = new MagicTrapZone();
	}

	public Deck getDeck() {
		return this.deck;
	}

	public Graveyard getGraveyard() {
		return this.graveyard;
	}

	public OutOfPlay getOutOfPlay() {
		return this.outOfPlay;
	}

	public MonsterZone getMonsterZone() {
		return this.monsterZone;
	}

	public MagicTrapZone getMagicTrapZone() {
		return this.magicTrapZone;
	}

	public boolean sendCardToGraveyard(Card card) {
		return card.sendToGraveyard(this);
	}

	public boolean removeCardFromPlay(Card card) {
		return card.removeFromPlay(this);
	}

}
